package com.ybkj.o2o.zhuanche.mapper;

import java.util.List;

import com.ybkj.o2o.zhuanche.common.query.InsuranceQuery;
import com.ybkj.o2o.zhuanche.entity.CarCriteria;
import com.ybkj.o2o.zhuanche.entity.Insurance;
import org.apache.ibatis.annotations.Param;



public interface InsuranceMapper extends BaseMapper<Insurance, CarCriteria, Long> {

  int insert(Insurance insurance);

  List<Insurance> selectByCarId(InsuranceQuery insuranceQuery);

  Long countByCarId(InsuranceQuery insuranceQuery);

  int deleteById(@Param("id") Long id, @Param("appKey") String appKey);

  Insurance findById(@Param("id") Long id, @Param("appKey") String appKey);

  List<Insurance> findByCarId(@Param("carId") Long carId, @Param("appKey") String appKey);
}
